
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"><meta name="format-detection" content="telephone=no">
    <title>成员列表</title>
    <link rel="stylesheet" href="${root}assets/agile/css/agile.layout.css">
<link rel="stylesheet" href="${root}assets/third/seedsui/plugin/seedsui/seedsui.min.css">
</head>

<body>
<div id="section_container">
    <section data-role="section" id="page_index" class="active">
        <header>
            <div class="titlebar">
            	<a data-toggle="back" href="#"><i class="icon icon-arrowleft"></i></a>
                <h1>成员列表</h1>
                <a href="add_user"><i class="icon icon-add"></i></a>
            </div>
        </header>
        <article id="main_article" data-role="article" class="active">

                <ul class="list between border-content">
                	<!--:for(u in obj){  -->
                    <li class="uli" data-uid="${u.id}">
                        <div class="justify">
                            <div class="photo">
                                <img src="${www}${u.img!}" />
                            </div>
                        </div>
                        <div class="justify-content">
                            <p>${u.nickname!'昵称'}(${u.name!'姓名'})</p>
                            <small class="top right">销售:${u.price!0}</small>
                            <small class="nowrap">电话:${u.phone!'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'}
                            &nbsp;微信:${u.wx!'未填写'}</small>
                        </div>
                    </li>
                    <!--:}  -->
                </ul>
            
        </article>
    </section>
</div>
<!--- third -->
	<script src="${root}assets/third/jquery/jquery-2.1.3.min.js"></script>
	<script src="${root}assets/third/jquery/jquery.mobile.custom.min.js"></script>
	<!---  agile -->
	<script type="text/javascript" src="${root}assets/agile/js/agile.js"></script>
<script type="text/javascript" src="${root}assets/bridge/exmobi.js"></script>
<script type="text/javascript" src="${root}assets/bridge/agile.exmobi.js"></script>			
	<!-- app -->
	<script type="text/javascript" src="${root}assets/app/js/app.seedsui.js"></script>
    
    
    <script type="text/javascript">
    $('.uli').on(A.options.clickEvent, function(){
    	var uid=$(this).attr("data-uid")
		A.popover([{
			text : '编辑',
	        handler : function(){
	        	location.href="${root}organ/add_user?id="+uid;
	        }
		},{
			text : '<font color="red">删除</font>',
	        handler : function(){
	        	if(uid=="${session.user.id}"){
	        		A.alert("不能删除自己!")
	        	}else
	        	location.href="${root}organ/user_del?id="+uid;
	        }
		}], this);
		return false;
	});
    </script>
    
    
    
    
</body>
</html>
